{include file="header.tpl"}
<form name="form2" action="{$smarty.server.PHP_SELF}" method="GET">
<table border="0" align="center">
  <tr>
    <td align="center" class="table1" colspan="9">**** Garnu ****</td>
  </tr>
	<tr>
	  <td class="table1" align="center" colspan="9">
			Select From : {html_select_date prefix="fromDate" start_year="-5" end_year="+2" field_order="DMY" time=$fromDate day_value_format="%02d"}
			To : {html_select_date prefix="toDate" start_year="-2" end_year="+1" field_order="DMY" time=$toDate day_value_format="%02d"}
		  <input type="submit" name="submitDateBtn" value="GO..." class="button"/>
		</td>
	</tr>	
	<tr>
    <td class="table1" align="center"> Edit Records </td>
    <td class="table1" align="center">Name</td>
    <td class="table1" align="center">Date</td>
    <td class="table1" align="center">Weight</td>
    <td class="table1" align="center">Return Weight</td>
    <td class="table1" align="center">Ghat</td>
    <td class="table1" align="center">Touch</td>
    <td class="table1" align="center">Silver</td>
    <td class="table1" align="center">Copper</td>
  </tr>
  {section name="sec" loop=$garnuMasterIdArray|@count}
  <tr>
    <td class="table2" align="center">
    	<a href="garnuEdit.php?garnuMasterId={$garnuMasterIdArray[sec].garnuMasterId}" class="link">Edit</a>&nbsp;   
      <a href="garnuOther.php?garnuMasterId={$garnuMasterIdArray[sec].garnuMasterId}" class="link">Print</a> &nbsp;    
      <a href="garnuListDelete.php?garnuMasterId={$garnuMasterIdArray[sec].garnuMasterId}" class="link"onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>    
    </td>
    <td class="table2" align="left">{$garnuMasterIdArray[sec].garnuName}</td>
    <td class="table2" align="center" nowrap>{$garnuMasterIdArray[sec].garnuDate}</td>
    <td class="table2" align="right">{$garnuMasterIdArray[sec].weight}</td>
    <td class="table2" align="right">{$garnuMasterIdArray[sec].returnWeight}</td>
    <td class="table2" align="right">{$garnuMasterIdArray[sec].ghat}</td>
    <td class="table2" align="right">{$garnuMasterIdArray[sec].touch|string_format:"%.0f"}</td>
    <td class="table2" align="right">{$garnuMasterIdArray[sec].silver}</td>
    <td class="table2" align="right">{$garnuMasterIdArray[sec].copper}</td>
  </tr>
  {/section}
  <tr>
    <td colspan="3" class="table2" align="center"><b>Total :</b></td>
    <td class="table2" align="right"><b>{$garnuTotalWeight|string_format:"%.0f"}</b></td>
    <td class="table2" align="right"><b>{$garnuReturnTotalWeight|string_format:"%.0f"}</b></td>
    <td class="table2" align="right"><b>{$garnuTotalGhat|string_format:"%.0f"}</b></td>
    <td class="table2" align="right"><b>{$garnuTotalTouch|string_format:"%.0f"}</b></td>
    <td class="table2" align="right"><b>{$garnuTotalSilver|string_format:"%.0f"}</b></td>
    <td class="table2" align="right"><b>{$garnuTotalCopper|string_format:"%.0f"}</b></td>
  {*<td colspan="2" class="table2" align="right"><b>{$totGhat|string_format:"%.0f"}</b></td>*}				   				   
  </tr>         
</table>